<template>
  <div id="hotelLayout">
    <div class="item-info clearfix">
      <div class="item-img fl">
        <img src="../../assets/quanjude.jpg" alt="Hotle">
      </div>
      <div class="item-txt fl">
        <div>
          <h3>{{food.name}}</h3>
        </div>
        <div>
          <span>88%的人喜欢, 888人住过</span>
        </div>
      </div>
      <div class="plus fr">
        <Button type="success" size="small" >预定</Button>
      </div>
    </div>
  </div>
</template>
<script>
  export default {
    name: 'food-item',
    props: ['food'],
    methods: {
    }
  }
</script>
<style>
  #hotelLayout .item-info {
    border-bottom: 1px solid #ccc;
    padding: 10px;
    background:#fff;
  }
  #hotelLayout .item-info img {
    width: 80px;
    height: 80px;
  }
  #hotelLayout .item-info .item-txt {
    padding-left: 10px
  }

  #hotelLayout .item-info .item-txt h3 {
    overflow: hidden;
    text-overflow:ellipsis;
    white-space: nowrap;
    width: 150px;
  }

  #hotelLayout .item-info .item-txt h4 {
    color: #959595;
    font-size: 11px;
    line-height: 30px;
  }

  #hotelLayout .item-info .item-txt div:last-child {
    margin-top: 14px;
  }
  #hotelLayout .item-info .item-txt span {
    color: #959595;
    font-size:10px;
  }
  #hotelLayout .item-info .plus {
    padding: 15px;
    font-size: 34px;
    font-weight: 700;
  }
</style>
